package com.model;

import java.nio.channels.SelectableChannel;
import java.util.List;

import com.jfinal.plugin.activerecord.Model;

public class Thesissource extends Model<Thesissource>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static Thesissource dao=new Thesissource();
	
	public List<Thesissource> selectSource(int stuId)
	{
		int depId=Student.dao.selectStuDep(stuId);
		String sql="SELECT * FROM thesissource where thesissource_department="+depId+"";
		List<Thesissource> thesissource = Thesissource.dao.find(sql);
		return thesissource;
	}
	

}
